package com.kitty.game.equip.model;

import com.kitty.mina.annotation.ListField;
import java.util.List;
import com.kitty.game.equip.model.EquipField;
import com.kitty.game.equip.model.RoleHunQiField;

public class EquipInfo {
    private byte position1=0;

    private byte position;

    private short size;

    @ListField(2)
    private List<EquipField> equipFields;

    @ListField(2)
    private List<RoleHunQiField> hunQiFields;

    public byte getPosition() {
        return position;
    }

    public void setPosition(byte position) {
        this.position = position;
    }

    public short getSize() {
        return (short) ((equipFields == null ? 0 : equipFields.size()) + (hunQiFields == null ? 0
                : hunQiFields.size()));
    }

    public void setSize(short size) {
        this.size = size;
    }

    public List<EquipField> getEquipFields() {
        return equipFields;
    }

    public void setEquipFields(List<EquipField> equipFields, List<RoleHunQiField> hunQiFields) {
        this.equipFields = equipFields;
        this.hunQiFields = hunQiFields;
        setSize(getSize());
    }

    public List<RoleHunQiField> getHunQiFields() {
        return hunQiFields;
    }

    public void setHunQiFields(List<RoleHunQiField> hunQiFields) {
        this.hunQiFields = hunQiFields;
        setSize(getSize());
    }
}
